public class Bird extends Animal {
    private String feathers;
    private String wings;

    public Bird(String name, String size, String quality, String feathers, String wings) {
        super(name, size, quality); // 调用父类的构造函数
        this.feathers = feathers;
        this.wings = wings;
    }

    public String getFeathers() {
        return feathers;
    }

    public String getWings() {
        return wings;
    }

    @Override
    public void move() {
        super.move(); // 调用父类的move方法
        fly(); // 添加飞翔行为
    }

    public void fly() {
        System.out.println("The bird " + getName() + " can fly.");
    }
}